package com.javabean;

import com.Dome.Car;

/*
 *
 *      CameraTest测试类
 *
 * */
public class CameraTest {
    //程序的主入口
    public static void main(String[] args) {
        //空参
        Camera c1 = new Camera();
        //赋值
        c1.setBrand("佳能 Canon");
        c1.setType("EOS 4000D");
        c1.setScene("+18-55mm III镜头");
        c1.setPlace("日本");
        c1.setPrice(2349.0);
        c1.setAppraise(5000); //评价单位: 条
        //调用show展示属性
        c1.show();

        System.out.println("----------------------");
        //带参
        Camera c2 = new Camera("尼康","单反","+18-55mm III镜头","日本",2666,"白色",10000);
        //调用方法展示
        c2.show();

    }

}
